xen: Option to allow per-device vector maps for MSI IRQs
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 26 Jul 2011 17:37:16 +0000 (18:37 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 26 Jul 2011 17:37:16 +0000 (18:37 +0100)
commit1b5a9e18bc04368e48ed06bd2cb8258508d089a0
treed90b5daeae83b965a9d40aa3e7ba1fe6e3df11d1
parent5028ef1e1b06001c3334d6abd8c5b1037596ca41
xen: Option to allow per-device vector maps for MSI IRQs

Add a vector-map to pci_dev, and add an option to point MSI-related
IRQs to the vector-map of the device.

This prevents irqs from the same device from being assigned
the same vector on different pcpus.  This is required for systems
using an AMD IOMMU, since the intremap tables on AMD only look at
vector, and not destination ID.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/irq.c
xen/include/xen/pci.h